deprecated: Cast g_object_ref() to the right type
authorEmmanuele Bassi <ebassi@gnome.org>
Sun, 11 Feb 2018 15:02:30 +0000 (15:02 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Sun, 11 Feb 2018 23:28:50 +0000 (23:28 +0000)
In GLib 2.56, g_object_ref() will check that you're assigning the return
value to a variable of the same type you're passing in.

gtk/deprecated/gtkuimanager.c

index a0b4129376fa835c725fd00130434e8134d44ce4..6ee242dd5c55f42fc6cb34353874971126f2b4d0 100644 (file)
@@ -740,7 +740,7 @@ gtk_ui_manager_buildable_construct_child (GtkBuildable *buildable,
   g_signal_connect (widget, "hierarchy-changed",
                    G_CALLBACK (child_hierarchy_changed_cb),
                    GTK_UI_MANAGER (buildable));
-  return g_object_ref (widget);
+  return G_OBJECT (g_object_ref (widget));
 }
 
 static void